package com.vca.common.request;

import com.alibaba.fastjson.JSONArray;
import com.vca.common.constants.RegularConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserEditRequest对象", description="用户修改信息")
public class UserEditRequest implements Serializable {
    private static final long serialVersionUID = 7915020050849704775L;

    @ApiModelProperty(value = "称谓")
    private Integer sex;

    @ApiModelProperty(value = "用户昵称")
    @NotBlank(message = "用户名称不能为空")
    private String nickname;

    @ApiModelProperty(value = "手机号码")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = RegularConstants.PHONE_TWO, message = "请填写正确的手机号")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "详细地址")
    private List<String> address;

    @ApiModelProperty(value = "生日")
    private String birthday;
}
